package com.itheima;

import com.itheima.dtos.ArticleDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author wangjiexin
 */
@FeignClient(value = "heimaarticle")
public interface ArticleApi {
    @PostMapping("/api/v1/article/save")
    CommonResult saveArticle(@RequestBody ArticleDto dto);

}
